package com.ngc.mall.domain;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ngc.mall.common.configure.mybatisPlus.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@TableName("menu")
@AllArgsConstructor
@NoArgsConstructor
public class MenuDomain extends BaseDomain {

    private Long pid;
    /**
     * 菜单名称
     */
    private String name;

    /**
     * 前端路径
     */
    private String path;

    /**
     * 前端icon
     */
    private String icon;

    private Integer sort;

    private Boolean isShow;

    /**
     * 是否在侧边栏隐藏
     */
    private Boolean hidden;

    /**
     * 权限标识
     */
    private String permission;

    /**
     * 菜单类型 1文件夹 2菜单 3权限
     */
    private Integer type;

    /**
     * 路由名称
     */
    private String routerName;

    @TableLogic
    private Boolean deleted;

}
